<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
    <title th:text="${title}"></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="images/logo-icon.png" type="image/x-icon" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="layui-v2.5.5/css/layui.css" media="all" />
    <link rel="stylesheet" href="css/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
	<style type="text/css">
		.admin-login-box{
			position: unset;
			width: auto;
		}
		.admin-login-box .admin-side-toggle{
			<!--display: none;-->
			left:200px;
		}
	</style>
</head>

<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header header header-demo">
        <div class="layui-main">
            <div class="admin-login-box">
                <a class="logo" style="left: 0;"  href="">
                    <span style="font-size: 22px;" th:text="${title}"></span>
                </a>
                <div class="admin-side-toggle">
                    <i class="fa fa-bars" aria-hidden="true"></i>
                </div>
            </div>
            <ul class="layui-nav admin-header-item">
                <!-- <li class="layui-nav-item">
                    <a href="javascript:;">我的消息<span class="layui-badge">2</span></a>
                </li> -->
                <!-- <li class="layui-nav-item">
                    <a href="javascript:;">修改密码</a>
                </li> -->
                <li class="layui-nav-item">
                    <a href="javascript:;" class="admin-header-user">
                        <img src="images/user-logo.png" />
                        <span id="userName" th:text="${author}"></span>
                    </a>
                    <dl class="layui-nav-child">
                        <!--<dd>
                            <a href="javascript:;" id="personalInfo"><i class="fa fa-user" aria-hidden="true"></i> 个人信息</a>
                        </dd>
                        <dd>
                            <a href="javascript:;" id="updatePass"><i class="fa fa-expeditedssl" aria-hidden="true"></i> 修改密码</a>
                        </dd>-->
                        <!-- <dd id="lock">
                            <a href="javascript:;">
                                <i class="fa fa-lock" aria-hidden="true" style="padding-right: 3px;padding-left: 1px;"></i> 锁屏 (Alt+L)
                            </a>
                        </dd> -->
                        <dd>
                            <a href="javascript:;" id="loginOutBtn"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出</a>
                        </dd>
                    </dl>
                </li>
            </ul>
            <ul class="layui-nav admin-header-item-mobile">
                <li class="layui-nav-item">
                    <a href="javascript:;" id="loginOutBtn-mobile"><i class="fa fa-sign-out" aria-hidden="true"></i> 注销</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-side layui-bg-black" id="admin-side">
        <div class="layui-side-scroll" id="admin-navbar-side" lay-filter="side"></div>
    </div>
    <div class="layui-body" style="bottom: 0;" id="admin-body">
        <div class="layui-tab admin-nav-card layui-tab-brief" lay-filter="admin-tab">
            <ul class="layui-tab-title">
            </ul>
            <div class="layui-tab-content" style="min-height: 150px; padding: 5px 0 0 0;">
               <!-- <div class="layui-tab-item layui-show">
                    <iframe src="../invitations/invitationList.html" data-id="-1"></iframe>
                </div> -->
            </div>
        </div>
    </div>
    <div class="layui-footer footer footer-demo" id="admin-footer">
        <div class="layui-main">
            <p th:text="${author}+' &copy;版权所有'"></p>
        </div>
    </div>
    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>
    
    <script type="text/javascript" src="layui-v2.5.5/layui.js"></script>
    <script type="text/javascript" src="js/nav.js"></script>
    <script type="text/javascript" src="js/base.js"></script>
    <script src="js/index.js"></script>
    <script>
        layui.use(['layer','element'], function() {
            var $ = layui.jquery,
                layer = layui.layer,
                element = layui.element;

            $(".layui-tab").children('ul.layui-tab-title').find('li').children('i.layui-tab-close[data-id="-1"]').on('click', function() {
                var filter = $(".layui-tab").attr("lay-filter");
                element.tabDelete(filter, '-1').init();
            });

            //退出
            $("#loginOutBtn").click(function(){
                location.href="/login.html";
            });

            //退出
            $("#loginOutBtn-mobile").click(function(){
                location.href="/login.html";
            });

        });
    </script>
</div>
</body>

</html>
